package com.farm.shop.service.impl;

import com.farm.shop.dao.FarmRoomDao;
import com.farm.shop.domain.FarmRoomDO;
import com.farm.shop.service.FarmRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class FarmRoomServiceImpl implements FarmRoomService {
    @Autowired
    private FarmRoomDao farmRoomDao;

    @Override
    public FarmRoomDO get(Long id) {
        return farmRoomDao.get(id);
    }

    @Override
    public List<FarmRoomDO> list(Map<String, Object> map) {
        return farmRoomDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return farmRoomDao.count(map);
    }

    @Override
    public int save(FarmRoomDO farmRoom) {
        return farmRoomDao.save(farmRoom);
    }

    @Override
    public int update(FarmRoomDO farmRoom) {
        return farmRoomDao.update(farmRoom);
    }

    @Override
    public int remove(Long id) {
        return farmRoomDao.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return farmRoomDao.batchRemove(ids);
    }

    @Override
    public List<FarmRoomDO> search(String keyword) {
        return farmRoomDao.search(keyword);
    }

    @Override
    public List<FarmRoomDO> searchName(Map<String, Object> map) {
        return farmRoomDao.searchName(map);
    }

    @Override
    public int searchNameCount(Map<String, Object> map) {
        return farmRoomDao.searchNameCount(map);
    }

}
